package com.atguigu.gmall.model.product.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class BaseAttrInfoVO {
    @JsonProperty("id")
    private Long id;

    @JsonProperty("attrName")
    private String attrName;

    @JsonProperty("category1Id")
    private Long category1Id;

    @JsonProperty("category2Id")
    private Long category2Id;

    @JsonProperty("category3Id")
    private Long category3Id;

    @JsonProperty("attrValueList")
    private List<AttrValueListDTO> attrValueList;

    @JsonProperty("categoryId")
    private Long categoryId;

    @JsonProperty("categoryLevel")
    private Integer categoryLevel;

    @NoArgsConstructor
    @Data
    public static class AttrValueListDTO {
        @JsonProperty("id")
        private Long id;

        @JsonProperty("valueName")
        private String valueName;

        @JsonProperty("attrId")
        private String attrId;

        @JsonProperty("edit")
        private Boolean edit;
    }
}
